frappe.ui.form.on('Plant Floor', {
    warehouse(frm){
       frm.trigger("enable_save");  
    },
    custom_default_source_warehouse(frm){
       frm.trigger("enable_save");  
    },
    custom_default_finished_goods_warehouse(frm){
       frm.trigger("enable_save");  
    },
    custom_default_scrap_warehouse(frm){
       frm.trigger("enable_save");  
    },
	enable_save(frm) {
        // 标准refresh事件禁用了save按钮，导致相关字段修改后无法保存
		if (!frm.is_new()) {
			frm.enable_save();
		}
	}
})